package au.com.carboncycle.gb.engine;

import java.util.List;
import java.util.Random;

import au.com.carboncycle.gb.engine.Input.Key;
import au.com.carboncycle.gb.engine.graphics.GBRenderer;



public abstract class Screen {
	
    protected static Random random = new Random();
    
    private GBEngine engine;

    public void removed() {
    }

    public void init(GBEngine engine) {
    	this.engine = engine;
    }
    
    protected void setScreen(Screen screen) {
    	engine.changeScreen(screen);
    }
            

    public abstract void render(GBRenderer renderer);

    public abstract void tick(List<Key> input, GameClock gameClock);
}